package com.framework.admin.model;

import com.framework.common.listener.impl.BaseEntityUpdate;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author lizurong
 * @description: 角色菜单关联表
 * @createDate 2021/1/11 10:50
 * @updateUser:
 * @updateDate:
 * @updateRemark:
 * @version: 1.0
 */
@Data
@Entity
@Table(name = "sys_role_menu")
@EqualsAndHashCode(callSuper = true)
public class SysRoleMenu extends BaseEntityUpdate {

    @ApiModelProperty("角色id")
    @Column(columnDefinition = "varchar(32) default '' COMMENT '角色id'")
    private String roleId;

    @ApiModelProperty("菜单id")
    @Column(columnDefinition = "varchar(32) default '' COMMENT '菜单id'")
    private String menuId;

}